<!doctype html>
<html lang="en">

	<head>
		<meta charset="UTF-8" />
		<title>详情页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/mui.css" />
		<link rel="stylesheet" href="css/font-awesome.css" />
		<link rel="stylesheet" type="text/css" href="css/semantic.css" />
		<link rel="stylesheet" type="text/css" href="css/complete_sub.css" />
	</head>

	<body>

		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">资产详情</h1>
		</header>
		<div class="ui container">
			<br />
			<br />
			<br />
		</div>
		<div class="ui container m-container">
			<div class="segment">
				<div class="ui one column grid blue">
					<div class="column">
						<div class="ui raised segment">
							<a id="DicProfitLossNum" class="ui blue ribbon label"></a>
							<span class="m-title">计算机</span>
							<h5 class="header">资产编号：<span id="AssetNum">1222222</span></h5>
						</div>
					</div>
				</div>
			</div>
			<div class="ui raised segment blue">
					<h5 class="header">基本信息</h5>
					<p>领用部门：<span id="AssetDepartNum">d</span></p>
					<p>存放地：<span id="AssetStoreNum">1</span></p>
					<!--<p>损益类型：<span ></span></p>-->
					<p>型号规格：<span id="AssetModel">1</span></p>
					<p>资产单价：<span id="AssetPrice">2</span></p>
					<p>生产厂家：<span id="AssetFactory">2</span></p>
					<p>单据号：<span id="AssetDocumentNum">2</span></p>
					<p>订购日期：<span id="AssetBuyDate">2</span></p>
					<p>领用人：<span id="AssetTakePeople">2</span></p>
					<p>备注：<span id="AssetRemrk">2</span></p>
			</div>

		</div>

		<script src="js/mui.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/addressinitialization.js"></script>
	</body>

</html>
<script src="js/mui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="js/addressinitialization.js" ></script>
    <script type="text/javascript">
    mui.init();
    mui.plusReady(function(){
		// 1.获取页面传的参数
		window.addEventListener('get_detail',function(event){
			var title = event.detail.title_;
			var id = event.detail.id_;
			if(!title || !id){
				return;
			}
			// 显示当前页面
			mui.currentWebview.show();
		// 2.将传的参数放到header中
			document.querySelector('.m-title').innerText=title;
			mui.ajax(IP + '/ias/AndroidInventAsset/MoreInformation', {
				data: {
					assetNum: id
				},
				type: 'post',
				dataType: 'json',
				headers: {
					'Content-Type': 'application/json'
				},
				success: function(response) {
					var asset = response.data;
					document.getElementById("AssetNum").innerText = asset.AssetNum;
					document.getElementById("AssetModel").innerText = asset.AssetModel;
					document.getElementById("AssetStoreNum").innerText = asset.AssetStoreNum;
					document.getElementById("AssetTakePeople").innerText = asset.AssetTakePeople;
					document.getElementById("AssetDepartNum").innerText = asset.AssetDepartNum;
					document.getElementById("AssetPrice").innerText = asset.AssetPrice;
					document.getElementById("DicProfitLossNum").innerText = asset.DicProfitLossNum;
					document.getElementById("AssetDocumentNum").innerText = asset.AssetDocumentNum;
					document.getElementById("AssetBuyDate").innerText = asset.AssetBuyDate;
					document.getElementById("AssetFactory").innerText = asset.AssetFactory;
					document.getElementById("AssetRemrk").innerText = asset.AssetRemrk;
					/*mui("#moreinformation").popover("toggle");*/
				},
				error: function(xhr, textStatus, errorThrown) {
					mui.alert("数据错误，请检查登陆状态");
				}
			});
   		});
	});
		
	
    mui.back = function(){
    	plus.webview.currentWebview().hide("auto",300);
    }
	
    </script>
